
<div class="row-fluid sortable ui-sortable">
    <div class="box span12">
        <div class="box-header well">
                <h2>Add new page</h2>
        </div>
        <div class="box-content">

            <form class="form-horizontal" action="<?= $this->url('admin/child', array('controller'=>'page','action' => 'add')) ?>" method="post" >

                <fieldset>
                    <!-- Address form -->

                    <div class="group_btn_right" style="margin-right:50px;height:40px">
                     <a href="<?= $this->url('admin/child', array('controller'=>'page')) ?>" class="btn btn-danger pull-right">Cancel</a>
                        <button type="submit" class="btn btn-success pull-right">Save</button>
                    </div>

                    <div style="clear:both"></div>

                    <div class="row-fluid">
                        <div class="span6">
                            <!-- full-name input-->
                            <div class="control-group">
                                <label class="control-label">Title</label>

                                <div class="controls">
                                    <input id="title" name="title" type="text" placeholder="Title"
                                           class="input-xlarge">

                                    <p class="help-block">Title of page</p>
                                </div>
                            </div>
                            <!-- address-line1 input-->
                            <div class="control-group">
                                <label class="control-label">Content</label>

                                <div class="controls">
                                    <textarea name="content" class="cleditor" id="textarea2" rows="2"></textarea>

                                    <p class="help-block"></p>
                                </div>
                            </div>

                        </div>
                        <div class="span6">
                            <div class="control-group">
                                <label class="control-label">Order</label>

                                <div class="controls">
                                    <input type="text" name="page_order" id="page_order" class="input-small">
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Parent</label>

                                <div class="controls">
                                    <select name="page_parent">
                                    <option>None</option>
                                    <?php foreach($page_parent as $key=>$item): ?>
                                    <option  value="<?=$item->id?>"><?=$item->title?></option>
                                    <?php endforeach ?>
                                </select>
                                </div>
                            </div>
                             <div class="control-group">
                                    <label class="control-label">Status</label>

                                    <div class="controls">
                                        <select name="status">
                                            <option value="publish">Publish</option>
                                            <option value="closed">Closed</option>
                                        </select>
                                    </div>
                            </div>
                            <div class="control-group">
                                    <label class="control-label">Page Type</label>

                                    <div class="controls">
                                        <select name="page_type">
                                            <option value="category">Category</option>
                                            <option value="post">Post</option>
                                            <option value="link">Link</option>
                                        </select>
                                    </div>
                            </div>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>
<script>
        $(document).ready(function(){
           $('.cleditor').cleditor({
            width:'400',
            height:'400',
           });
        })        ;

</script>